/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 *
 */


import { HvigorLogger } from '../../src/base/log/hvigor-log';
import { initHook, unhook } from '../../src/cli/util/std-hook';

test('init hook', () => {
  initHook();
  HvigorLogger.getLogger().info('a');

  unhook();
});

test('unhook', () => {
  initHook();
  unhook();
  HvigorLogger.getLogger().info('a');
});
